@extends('layouts.default')


@section('title','注册')
@section('content')
    <div class="row">
        <div class="offset-md-2 col-md-8">
            <div class="col-md-12">
                <div class="offset-md-2 col-md-8">
                    <div class="card">
                        <h5 class="card-header d-flex justify-content-center align-items-center">
                            用户注册
                        </h5>
                        <div class="card-body">
                            @include('share._error')

                            <form action="{{route('users.store')}}" method="post">
                                @csrf
                                <div class="form-group">
                                    <label for="name">昵称:</label>
                                    <input type="text" class="form-control" name="name" id="name" value="{{old('name')}}">
                                </div>
                                <div class="form-group">
                                    <label for="email">邮箱:</label>
                                    <input type="email" class="form-control" name="email" id="email" value="{{old('email')}}">
                                </div>
                                <div class="form-group">
                                    <label for="password">密码:</label>
                                    <input type="password" class="form-control" name="password" id="password">
                                </div>
                                <div class="form-group">
                                    <label for="password_confirmation">确认密码:</label>
                                    <input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
                                </div>
                                <div class="d-flex justify-content-center">
                                    <button type="submit" class="btn btn-primary">注册</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

